<%@page import="board.BoardMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DELETE</title>
<script>
function btnlist(){
	location.href="list.jsp";
}
</script>
</head>
<body>

<jsp:useBean id="vo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="vo"/>
<h1>삭제확인창</h1>
<%
BoardMyba board=new BoardMyba();
vo.setRequest(request);//form에서 MultipartRequest로 값을 전달할 때 필요한 것,setBoardvo(vo)하기 전에 setRequest를 해줘야함
board.setBoardvo(vo);

if(board.delete()){
out.print("정상적으로 삭제되었습니다.");
}else{
out.print("삭제 중 오류.");

}

%>

<input type='button' value='목록' onclick="btnlist()">
</body>
</html>